#pragma once

#include "resource.h"

#include <d3d9.h>
#include "D3DInterface.h"

IDirect3DDevice9 *pDevice = NULL;

bool InitD3D(
	HINSTANCE hInstance,
	int width, int height,
	bool windowed,
	D3DDEVTYPE deviceType,
	IDirect3DDevice9 **device);

int EnterMsgLoop(IFramework* i);

LRESULT CALLBACK WndProc(
	HWND hwnd,
	UINT msg,
	WPARAM wParam,
	LPARAM lParam);

ATOM MyRegisterClass(HINSTANCE hInstance);